package com.elcom.roaming.common.util.match;

import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

public abstract class ObjectKey {
	
	private static final DateTimeFormatter TIME_FORMATTER = DateTimeFormat.forPattern("yyyyMMddHHmmssSSS");
	private String putTime;
	
	public ObjectKey() {
		this.putTime = null;
	}

	public String getPutTime() {
		return putTime;
	}

	public void setPutTime(String putTime) {
		this.putTime = putTime;
	}

	public long getPutTimeInMs(){
		return TIME_FORMATTER.parseMillis(putTime);
	}
	
	@Override
	public abstract boolean equals(Object obj);

	@Override
	public abstract int hashCode();
	
	@Override
	public abstract String toString();

}
